package morning.cat;

import feign.Feign;
import feign.gson.GsonDecoder;
import morning.cat.client.MyUrlClient;
import morning.cat.client.PersonClient;
import morning.cat.contract.MyContract;
import morning.cat.entity.Person;
import morning.cat.service.UrlService;

/**
 * @describe: 类描述信息
 * @author: morningcat.zhang
 * @date: 2019/6/4 2:00 PM
 */
public class PersonTest4 {

    public static void main(String[] args) {
        // 获取服务接口
        MyUrlClient client = Feign.builder()
                .contract(new MyContract())
                .target(MyUrlClient.class, UrlService.SERVER_URL);

        // 请求Hello World接口
        String result = client.myHello();
        System.out.println("接口响应内容：" + result);

    }
}
